package alexandria.dashboard.entity

class Task {
    int id
    String externalId
    String text
    String status
    Story story
    static belongsTo = Story

    static constraints = {
        externalId(nullable:false, blank:false, unique:true)
        text(nullable:false, blank:false)
        status(nullable:false, blank:false)
        story(nullable:true)
    }
}
